package cn.quevo.cube.provide.data.enums;


import cn.quevo.common.enums.EnumsInterface;

/**
 * 日期格式转换
 *
 * @author July july_sky@foxmail.com
 * @version 1.0
 * @date 2018/4/26 下午2:35
 * @Copyright ©2015-2035 湘豫(北京)科技有限公司. All Rights Reserved.
 */
public enum DateFormatConvert implements EnumsInterface {
    YMD("yyyy/MM/dd", "年月日"),
    YMDH("yyyy/MM/dd HH", "年月日小时"),
    YMDHMI("yyyy/MM/dd HH:mm", "年月日时分"),
    YMDHMISS("yyyy/MM/dd HH:mm:ss", "年月日时分秒"),
    YMDHMISSMS("yyyy/MM/dd HH:mm:ss", "年月日时分秒毫秒"),// 此处不支持毫秒
    H("HH", "小时"),
    HM("HH:mm", "时分"),
    HMS("HH:mm:ss", "时分秒");
    private String code;
    private String value;

    DateFormatConvert(String code, String value) {
        this.code = code;
        this.value = value;
    }

    @Override
    public String getCode() {
        return this.code;
    }

    @Override
    public String getValue() {
        return this.value;
    }
}
